<script>
 bar > baz ?
        value1 :
       value2;
</script>
